load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "pgcryptocipherccl",
    srcs = [
        "cipher.go",
        "cipher_fuzz.go",
        "cipher_method.go",
        "doc.go",
        "padding.go",
        "test_helper.go",
    ],
    importpath = "github.com/cockroachdb/cockroach/pkg/ccl/pgcryptoccl/pgcryptocipherccl",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/sql/pgwire/pgcode",
        "//pkg/sql/pgwire/pgerror",
        "//pkg/util/errorutil/unimplemented",
        "@com_github_cockroachdb_errors//:errors",
        "@com_github_stretchr_testify//require",
    ],
)

go_test(
    name = "pgcryptocipherccl_test",
    srcs = [
        "cipher_method_test.go",
        "cipher_test.go",
        "padding_test.go",
    ],
    embed = [":pgcryptocipherccl"],
    deps = [
        "//pkg/util/leaktest",
        "@com_github_stretchr_testify//require",
    ],
)
